package com.imooc.mybatisplusappdemo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;

public class BaseEntity {

  @TableField(fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDateTime createTime;


  @TableField(fill = FieldFill.UPDATE)
  private LocalDateTime modifiedTime;


  @TableField(fill = FieldFill.INSERT)
  private Long createAccountId;


  @TableField(fill = FieldFill.UPDATE)
  private Long modifiedAccountId;


  @TableLogic
  private Integer deleted;

}
